package com.youshang520i.service.impl;

import com.youshang520i.service.MyService;
import org.springframework.aop.framework.AopContext;
import org.springframework.stereotype.Service;

/**
 * @author youshang
 */
@Service
public class MyServiceImpl implements MyService{

    @Override
    public void  doSth1(){

        System.out.println(" doSth1 ->>>>>>>>>");

        ((MyService) AopContext.currentProxy()).doSth2();
//        this.doSth2();
    }
    @Override
    public void  doSth2(){
        System.out.println(" doSth2 ->>>>>>>>>");
    }

}
